package com.sunny.excel.util;

import java.util.Collection;

/**
 * @Author:shucq
 * @Description:
 * @Date 2019/10/31 17:41
 */
public class CollectionUtils {
    public static boolean isNotEmpty(Collection coll) {
        return !CollectionUtils.isEmpty(coll);
    }

    public static boolean isEmpty(Collection coll) {
        return (coll == null || coll.isEmpty());
    }
    public static void addAll(Collection collection, Object[] elements) {
        for (int i = 0, size = elements.length; i < size; i++) {
            collection.add(elements[i]);
        }
    }

}
